<!DOCTYPE html>
<html>
    <head lang="
    en">
    <meta charset="UTF-8">

    </head>
    <body>
        <audio id="audio" src="./../song.ogg"></audio>
        <button onclick="clickA()">播放/暂停</button>
        <script>
        var a =document.getElementById("audio");
        function clickA(){
            if (a.paused){
                a.play()
            }else{
                a.pause();
            }
        }
        
        </script>
    </body>
</html>